package fourzerofour.yangqiang.day01;

import java.util.Scanner;

public class Question10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int password = 123;
        int n;
        do{
            System.out.println("请输入密码");
            n=scanner.nextInt();
        }while(n!=password);
        System.out.println("密码正确");
    }
}
